package com.jijuxie.house.service.impl;

import java.util.Map;
import java.util.HashMap;

import org.springframework.stereotype.Service;
import com.jijuxie.house.service.IHouseAgentService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class HouseAgentServiceImpl implements IHouseAgentService {

    @Override
    public Map<String, Object> getAgentBasicInfo(Long agentId) {
        // TODO: 实现从数据库获取经纪人基本信息
        Map<String, Object> agentInfo = new HashMap<>();
        agentInfo.put("agentName", "默认经纪人");
        agentInfo.put("avatar", "/profile/avatar/default-avatar.jpg");
        agentInfo.put("title", "房产顾问");
        return agentInfo;
    }

    @Override
    public Map<String, Object> getAgentDetailInfo(Long agentId) {
        // TODO: 实现从数据库获取经纪人详细信息
        Map<String, Object> agentInfo = new HashMap<>();
        agentInfo.put("agentName", "默认经纪人");
        agentInfo.put("avatar", "/profile/avatar/default-avatar.jpg");
        agentInfo.put("title", "房产顾问");
        agentInfo.put("phone", "13800138000");
        agentInfo.put("wechat", "agent888");

        // 添加统计信息
        Map<String, Object> stats = new HashMap<>();
        stats.put("experience", 3);
        stats.put("deals", 100);
        stats.put("rating", 4.8);
        agentInfo.put("stats", stats);

        return agentInfo;
    }
} 